﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using HNCDataSetTableAdapters;
public partial class UserControl_content_document : System.Web.UI.UserControl
{
    ProductsTableAdapter pro = new ProductsTableAdapter();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int ProductID = int.Parse(HttpContext.Current.Request.RequestContext.RouteData.Values["ProductID"].ToString());

            rptDocument.DataSource = pro.GetProductByProductID(ProductID);
            rptDocument.DataBind();
        }
    }
}